<?php
include($_SERVER['DOCUMENT_ROOT'] . "/admin/includes/Interceptor.php");
require_once($_SERVER['DOCUMENT_ROOT'] . '/static/db/connect.php');
@$url = $_SERVER['PATH_INFO'];
$status = 0;
@$art_id = $_POST['id'];
if (isset($art_id) && is_numeric($art_id)) {
    if ($url == '/trash') {
        $status = -1;
    } elseif ($url == '/ok') {
        $status = 1;
    } elseif ($url == '/unlink') {
        $status = 0;
    }
    $sql = " update qt_skill_be set status = $status where id = $art_id";
    $mysqli->query($sql);
    echo 1;
} else {
    echo 0;
}
$mysqli->close();
?>